package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the STORAGE_WITHDRAWEL_DETAILS database table.
 * 
 */
@Entity
@Table(name="STORAGE_WITHDRAWEL_DETAILS")
@NamedQuery(name="StorageWithdrawelDetail.findAll", query="SELECT s FROM StorageWithdrawelDetail s")
public class StorageWithdrawelDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="WITHDRAWEL_DETAILS_ID")
	private long withdrawelDetailsId;

	@Column(name="DRUG_NUMBER")
	private BigDecimal drugNumber;

	@Column(name="DRUGS_COST")
	private BigDecimal drugsCost;

	//bi-directional many-to-one association to DrugstorageWithdrawel
	@ManyToOne
	@JoinColumn(name="DRUGWITHDRAWEL_ID")
	private DrugstorageWithdrawel drugstorageWithdrawel;

	//bi-directional many-to-one association to MedcineDetail
	@ManyToOne
	@JoinColumn(name="MEDCINE_ID")
	private MedcineDetail medcineDetail;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="STAFF_ID")
	private Staff staff;

	//bi-directional many-to-one association to Supplier
	@ManyToOne
	@JoinColumn(name="SUPPLIER_ID")
	private Supplier supplier;

	public StorageWithdrawelDetail() {
	}

	public long getWithdrawelDetailsId() {
		return this.withdrawelDetailsId;
	}

	public void setWithdrawelDetailsId(long withdrawelDetailsId) {
		this.withdrawelDetailsId = withdrawelDetailsId;
	}

	public BigDecimal getDrugNumber() {
		return this.drugNumber;
	}

	public void setDrugNumber(BigDecimal drugNumber) {
		this.drugNumber = drugNumber;
	}

	public BigDecimal getDrugsCost() {
		return this.drugsCost;
	}

	public void setDrugsCost(BigDecimal drugsCost) {
		this.drugsCost = drugsCost;
	}

	public DrugstorageWithdrawel getDrugstorageWithdrawel() {
		return this.drugstorageWithdrawel;
	}

	public void setDrugstorageWithdrawel(DrugstorageWithdrawel drugstorageWithdrawel) {
		this.drugstorageWithdrawel = drugstorageWithdrawel;
	}

	public MedcineDetail getMedcineDetail() {
		return this.medcineDetail;
	}

	public void setMedcineDetail(MedcineDetail medcineDetail) {
		this.medcineDetail = medcineDetail;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

	public Supplier getSupplier() {
		return this.supplier;
	}

	public void setSupplier(Supplier supplier) {
		this.supplier = supplier;
	}

}